home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Ghost 1.0 / source / Ghost ƒ / Ghost code / ghost globals.h < prev    next >
Encoding:
Text File  |  1994-10-30  |  2.4 KB  |  104 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        ghost globals.h
  4.  
  5. Purpose:    This is the header file for all the Ghost-specific global
  6.             variables and constants
  7.  
  8.  
  9. Ghost -=- a classic word-building challenge
  10. Copyright (C) 1993 Mark Pilgrim
  11.  
  12. This program is free software; you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation; either version 2 of the License, or
  15. (at your option) any later version.
  16.  
  17. This program is distributed in the hope that it will be useful,
  18. but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. GNU General Public License for more details.
  21.  
  22. You should have received a copy of the GNU General Public License
  23. along with this program in a file named "GNU General Public License".
  24. If not, write to the Free Software Foundation, 675 Mass Ave,
  25. Cambridge, MA 02139, USA.
  26.  
  27. \**********************************************************************/
  28.  
  29. enum
  30. {
  31.     allsWell=0,
  32.     kNoIndex,
  33.     kNoDictionaries,
  34.     kCantFindSmallDict,
  35.     kCantReadSmallDict,
  36.     kSmallDictDamaged,
  37.     kCantFindLargeDict,
  38.     kCantReadLargeDict,
  39.     kLargeDictDamaged,
  40.     kNoMemory,
  41.     kCantCreateGame,
  42.     kCantOpenGameToSave,
  43.     kCantWriteGame,
  44.     kCantOpenGameToLoad,
  45.     kCantLoadGame,
  46.     kBadChecksum,
  47.     kSaveVersionNotSupported
  48. };
  49.  
  50. enum
  51. {
  52.     kPartial=0,
  53.     kFull
  54. };
  55.  
  56. #define CREATOR            'GH∫T'
  57. #define    SAVE_TYPE        'Ggme'
  58. #define    SAVE_VERSION    1
  59.  
  60. extern    FSSpec            gameFile;
  61. extern    Boolean            deleteTheThing;
  62.  
  63. extern    CIconHandle        gColorIcons[24];
  64. extern    Handle            gBWIcons[24];
  65.  
  66. extern    Ptr                gTheDictionary[2];
  67. extern    long            gIndex[2][27];
  68.  
  69. extern    int                gNumComputerPlayers;
  70. extern    StringHandle    gIconNames[24];
  71. extern    int                gComputerIconIndex[5];
  72. extern    int                gNumHumanPlayers;
  73. extern    StringHandle    gHumanName[5];
  74. extern    int                gHumanIconIndex[5];
  75.  
  76. extern    int                gActualHumanPlayers, gActualComputerPlayers;
  77. extern    int                gNumPlayers;
  78. extern    int                gPlayOrderIndex[10];
  79.  
  80. extern    int                gComputerPlayerScore[5];
  81. extern    int                gHumanPlayerScore[5];
  82.  
  83. extern    Str255            gTheWord;
  84. extern    Str255            gTheMessage;
  85. extern    int                gCurrentPlayer;
  86.  
  87. extern    unsigned char    gShowMessageBox;
  88. extern    unsigned char    gGameSpeed;
  89. extern    unsigned char    gComputerIntelligence;
  90. extern    unsigned char    gUseFullDictionary;
  91.  
  92. extern    int                gStatus;
  93.  
  94. enum
  95. {
  96.     kNoStatus=0,
  97.     kJustGotALetter,
  98.     kJustLost,
  99.     kIsChallenging,
  100.     kLostChallenge,
  101.     kWonChallenge,
  102.     kNewPlayer
  103. };
  104.